<?php
namespace app\admin\validate;
use think\Validate;

/**
 * Created by PhpStorm.
 * User: HuangLuSen
 * Date: 2017/5/4
 * Time: 19:36
 */
class Depar extends Validate
{
    protected $rule = [
        'name'  =>  'require|token',
    ];
    protected $message =[
        'name.require'=>'部门名称不能为空',
    ];
}